//
//  XMNetwork+find.h
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/7/2.
//

#import "XMNetwork.h"

NS_ASSUME_NONNULL_BEGIN

@interface XMNetwork (find)

/**
 图文列表
 */
- (void)getPicWordListWithPath:(NSString *)pathStr
                       pageNum:(NSString *)pageNum
                     sessionId:(NSString *)sessionId
                          city:(NSString *)city
                       success:(void (^)(id responseObject))successBlock
                       failure:(void (^)(NSError *error))failureBlock;

/**
 点赞视频
 */
- (void)videoLikedWithVideoId:(NSString *)videoId
                      success:(void (^)(NSError *error))successBlock
                      failure:(void (^)(NSError *error))failureblock;

/**
 图文详情
 */
- (void)getPicwordDetailWithPicwordId:(NSString *)picwordId
                              success:(void (^)(id responseObject))successBlock
                              failure:(void (^)(NSError *error))failureBlock;

/**
 图文评论列表
 */
- (void)getPicwordCommentWithPicwordId:(NSString *)picwordId
                                  page:(NSString *)page
                               success:(void (^)(id responseObject))successBlock
                               failure:(void (^)(NSError *error))failureBlock;

/**
 评论图文
 */
- (void)picwordCommentWithPicwordId:(NSString *)picwordId
                          commentId:(NSString *)commentId
                     picwordContent:(NSString *)contentStr
                       commentLevel:(NSString *)commentLevel
                            success:(void (^)(id responseObject))successBlock
                            failure:(void (^)(NSError *error))failureBlock;

/**
 图文点赞
 */
- (void)picwordLikeWithPicwordId:(NSString *)picwordId
                         success:(void (^)(id responseObject))successBlock
                         failure:(void (^)(NSError *error))failureBlock;

/**
 图文评论点赞
 */
- (void)picwordCommentLikeWithCommentId:(NSString *)commentId
                                success:(void (^)(id responseObject))successBlock
                                failure:(void (^)(NSError *error))failureBlock;

/**
 多张图片上传
 */
- (void)imgUploadWithImg:(NSArray *)imgArr
               directory:(NSString *)directory
                 success:(void (^)(id responseObject))successBlock
                 failure:(void (^)(NSError *error))failureBlock;

/**
 发布图文
 */
- (void)picwordPublishWithParameters:(NSMutableDictionary *)parameters
                             success:(void (^)(id responseObject))successBlock
                             failure:(void (^)(NSError *error))failureBlock;

/**
 图文搜索
 */
- (void)picwordSearchWithPage:(NSString *)page
                          key:(NSString *)key
                     timeType:(NSString *)timeType
                 isByTimesort:(NSString *)isByTimesort
                      success:(void (^)(id responseObject))successBlock
                      failure:(void (^)(NSError *error))failureBlock;

/**
 用户搜索
 */
- (void)findUserSearchWithSearchKey:(NSString *)searchKey
                               page:(NSString *)page
                            success:(void (^)(id responseObject))successBlock
                            failure:(void (^)(NSError *error))failureBlock;

@end

NS_ASSUME_NONNULL_END
